﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SomeGame.GUI.Widgets.InlineWidgets {

    public abstract class TextWidget : InlineWidget {

        protected SpriteFont Font;
        protected Color FontColor;
        protected bool HasFocus;
        public bool IsFocusable = true;
        protected string Text;

        protected TextWidget() {
            // ...
        }

        protected TextWidget(Texture2D texture, Color color) : this(texture, texture.Width, texture.Height, color) {
            // ...
        }

        protected TextWidget(Texture2D texture, int width, int height, Color color)
            : base(texture, width, height, color) {
            // ...
        }

        protected TextWidget(Texture2D texture, Color color, SpriteFont font, Color fontColor, string text)
            : this(texture, texture.Width, texture.Height, color, font, fontColor, text) {
            // ...
        }

        protected TextWidget(Texture2D texture,
            int width,
            int height,
            Color color,
            SpriteFont font,
            Color fontColor,
            string text) : base(texture, width, height, color) {
            Font = font;
            FontColor = fontColor;
            Text = text;
        }

    }

}